**********************************************************************************************
set more off
log using tableA2.log, replace text


/*
*instructions for outreg;
local instruct_ols "ctitle(OLS) dec(4)  auto(2) symbol(***,**,*) se"; 
local instruct_iv "ctitle(IV) dec(4)  auto(2) symbol(***,**,*) se addstat(First stage F, e(widstat))"; 
local instruct_iv_overid "ctitle(IV) dec(4)  auto(2) symbol(***,**,*)  se addstat(Overid,e(jp),First stage F, e(widstat))"; 
*/


*Check effects of controls on instruments
*road rays
reg road_1962_rays larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se replace
*km of roads outside cp
reg lroad_1962_km_pfcp larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se append
*rail rays
reg rail_1962_rays larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se append
*ring roads
reg po_s_road_1962_ringxda larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref  if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se append

**CHECK JUST MANUFACTURING
reg road_1962_rays share_emp_man1982_pref if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se replace
reg rail_1962_rays share_emp_man1982_pref if D0==1, robust cluster(province05)
outreg2 using "tableA2", excel  dec(4)  auto(2) symbol(***,**,*)  se append



log close

